package com.clc.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.clc.bean.WalletAccount;
import com.clc.bean.WalletType;
import com.clc.dao.IWalletAccountDao;
import com.clc.dao.IWalletTypeDao;
import com.clc.service.IWalletService;

@Service("WalletService")
public class WalletServiceImpl implements IWalletService{

	@Autowired
	private IWalletAccountDao walletAccountDao;
	@Autowired
	private IWalletTypeDao walletTypeDao;
	@Override
	public List<WalletAccount> findAccounts() throws Exception {
		// TODO Auto-generated method stub
		return walletAccountDao.getWalletAccounts();
	}

	@Override
	public List<WalletType> findAllWalletTypes() throws Exception {
		// TODO Auto-generated method stub
		return walletTypeDao.getAllWalletTypes();
	}


}
